ga.core.individual
Interface IIntervalFitness

All Superinterfaces:
IFitness
All Known Implementing Classes:
FurnLayoutIndividual, IndividualComparator.TestInterval

public interface IIntervalFitness
extends IFitness

Interface for adding interval fitness to individuals.
The interval has a minimum and maximum, the width (maximum - minimum) and a center (maximum - width/2).

Since:
11.08.2012
Author:
Stephan Dreyer

Field Summary
 
Fields inherited from interface ga.core.individual.IFitness
UNEVALUATED
 
Method Summary
 double getFitnessWidth()
          Getter for the fitness width (max-min).
 double getMaxFitness()
          Getter for the maximum fitness.
 double getMinFitness()
          Getter for the minimum fitness.
 void setFitnessInterval(double center, double width)
          Sets the fitness interval by its center and width.
 void setFitnessLimits(double min, double max)
          Sets the fitness interval by its minimum and maximum.
 
Methods inherited from interface ga.core.individual.IFitness
getFitness, setFitness
 

Method Detail

getMinFitness

double getMinFitness()
Getter for the minimum fitness.

Returns:
The min fitness.
Since:
11.08.2012

getMaxFitness

double getMaxFitness()
Getter for the maximum fitness.

Returns:
The max fitness.
Since:
11.08.2012

getFitnessWidth

double getFitnessWidth()
Getter for the fitness width (max-min).

Returns:
The width.
Since:
11.08.2012

setFitnessInterval

void setFitnessInterval(double center,
                        double width)
Sets the fitness interval by its center and width.

Parameters:
center - Center of the fitness interval.
width - The width of the fitness interval.
Since:
11.08.2012

setFitnessLimits

void setFitnessLimits(double min,
                      double max)
Sets the fitness interval by its minimum and maximum.

Parameters:
min - Minimum fitness.
max - Maximum fitness.
Since:
11.08.2012